﻿using Appliaction.IAppServices.Base_Manage;
using Domain.Entitys.Base_Manage;
using Domain.IRepositorys.Base_Manage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Appliaction.AppServices.Base_Manage
{
    public class JurisdictionService : IJurisdictionService
    {
        private readonly IJurisdictionRepository jurisdictionRepository;

        public JurisdictionService(IJurisdictionRepository jurisdictionRepository)
        {
            this.jurisdictionRepository = jurisdictionRepository;
        }

        public List<Trees> GetJurisdictions(int rolesId)
        {
            return jurisdictionRepository.GetJurisdictions(rolesId);
        }
    }
}
